package com.woniuxy.service.statement.impl;

import com.woniuxy.mapper.IndentMapper;
import com.woniuxy.service.statement.SaleService;
import com.woniuxy.vo.BarVO;
import com.woniuxy.vo.BarViewVo;
import com.woniuxy.vo.DataVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 马踏东京赏樱花
 */
@Service
public class SaleServiceImpl implements SaleService {
    @Autowired
    private IndentMapper indentMapper;

    @Override
    public List<BarViewVo> barVoList() {
        BarVO barVo = new BarVO();
        List<String> names = new ArrayList<>();
        List<DataVO> values = new ArrayList<>();
        List<BarViewVo> stringList2 = indentMapper.mySelect();
        barVo.setNames(names);
        barVo.setValues(values);
        System.out.println(stringList2);
        return stringList2;
    }
}
